import { createRouter, createWebHistory } from 'vue-router'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      // component: HomeView
      component: () => import('@/views/home/indexView.vue')
    },
    {
      path: '/about',
      name: 'about',
      component: () => import('@/views/about/indexView.vue')
    },
    {
      path: '/msg',
      name: 'msg',
      component: () => import('@/views/msg/indexView.vue')
    },
    {
      path: '/shop',
      name: 'shop',
      component: () => import('@/views/shop/indexView.vue')
    },
    {
      path: '/mine',
      name: 'mine',
      component: () => import('@/views/mine/indexView.vue')
    }
  ]
})

export default router
